/*
 * Author: Edgar Wang
 * Date: Tue Aug  6 16:39:12 CST 2013
 */

#include <stdio.h>

int problem_a(int x)
{
	return (~0xFF) | x;
}

int problem_b(int x)
{
	return (0xFF & ~x) | (~0xFF & x);
}

int problem_c(int x)
{
	return (~0xFF) & x;
}

int main(void)
{
	int x = 0x98FDECBA;

	printf("%X\n", problem_a(x));
	printf("%X\n", problem_b(x));
	printf("%X\n", problem_c(x));

	return 0;
}
